﻿<%@ Import Namespace="SinsenMVC.Helpers"%>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MemberMenu.ascx.cs" Inherits="SinsenMVC.Views.Shared.MemberMenu" %>

<ul class="menu">
	<% if(Helper.IsLoggedIn){
         %>
	<li class="parent"><%= Html.RouteLink("mine detaljer", new { Controller = "Members", Action = "Show", Id = Member.Id })%></li> 
	<li><%= Html.ActionLink("forum", "Index", "Forum") %></li> 
	<li><%= Html.ActionLink("wiki", "Index", "Wiki") %></li> 
	<li><%= Html.ActionLink("send epost", "Index", "MassMailer") %></li> 
	<li><%= Html.RouteLink("styrereferater", new{Controller="Articles", Action="Index", ArticleAction="minutes"}) %></li> 
	<li><%= Html.RouteLink("intern informasjon", new{Controller="Articles", Action="Index", ArticleAction="internal"}) %></li> 
	<li><%= Html.RouteLink("logg ut", new{Controller="Login",Action="Logout",ReturnUrl = Request.Url.AbsolutePath} )%> (<%= Member.FullName %>) </li>
	<% } else { %>
	<li><%= Html.RouteLink("logg inn", new { Controller = "Login", Action = "Index", ReturnUrl = Request.Url.AbsolutePath })%></li> 
<% } %>
</ul>